#include "epoll.h"
#include <stddef.h>

int epollAdd(int epoll_fd, int add_fd)
{
    struct epoll_event event;
    event.data.fd = add_fd;
    event.events = EPOLLIN;
    epoll_ctl(epoll_fd, EPOLL_CTL_ADD, add_fd, &event);

    return epoll_fd;
}

int epollDel(int epoll_fd, int del_fd)
{
    epoll_ctl(epoll_fd, EPOLL_CTL_DEL, del_fd, NULL);

    return epoll_fd;
}